﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ApprovalFlow.Models
{
    public class ConditionDescription : StepDescription
    {
        /// <summary>
        /// 连接类型
        /// </summary>
        public string Connection { get; set; }

        public bool Verify()
        {
            return true;
        }

        public override IEnumerable<ExecutionPointer> Builder(WorkflowInstance instance, ExecutionPointer master)
        {
            if (this.ChildNode is not null)
            {
                return this.ChildNode.Builder(instance, master);
            }
            return default;
        }
    }
}
